<?php
require_once '../../MApache/weblinx/weblinx.php';
require_once '../Forms/FrmTerminal.php';
$page=new Page();
$page->setCharSet($charSet="utf-8");
$page->setCss($css="../Themes/Standard/skin.css");
$page->start();
echo '
  <script type="text/javascript"  language="javascript">
        var stack=new Array(1); //La pila de datos
        function updateStack(){
                var texto="";
                var aux=new Array();
                aux=arguments[0].split(":");
                stack.push(aux[1]);
                
                for(var i=stack.length-1; i>0; i--){
                    texto=texto+i+":"+stack[i]+"\n";
                }
                document.getElementById("Terminal").value=texto;
            }

</script>

';

$page->headEnd();
$page->setBodyEvents(array("onload"=>'"loadTerminal()"'));
$page->bodyStart();

if(isset($_GET['start'])){
    $frmTerminal=new FrmTerminal();
    $frmTerminal->getEasyForm()->setItem($label="A1", $content="WELCOME to ENGINEER+\nReady!\n---------------\n");
    $frmTerminal->setVisible($visible=TRUE);
}

$page->end();

?>
